Simplify crontask writing