Implement the commands, Implement Connected event