Added my algorithm to home controller