Add mod functions, add line to be added to viewspec