Closed #8: Added function get_current_task() for the replacement of make_task_method()