Worked on control function.