Commented template create MOB function, to use as base for further development.