Added methods to ConnectionHandler class