Moved functions that require task-specific bodies to html file