Edited task allowed function to check task details.