Change socket to timer