Removed eval function.
Refactored runCommand.