@mr_motus
Maybe this will help, as a starting point. You can customize it to your specific requirements.