Implemented basic command proxy
Extracted execute method into a function that can be called standalone.