Added localCommands() function to client.