Add function preparing command for further execution.