Enabled the function to add tasks