Added tasks function