Trying to get prepare_command to work