Added the Tasks function