Replaced switch statement with if statement
Made Handler/Thread create and call LOCATE class