Implemented temp controller functionality