Added function for recursive sub tasks up-to level 5