Added support for Procs in my_map