Add executeCommand and log functions. Add basic logs to mark start and finish of actions.