Check for command before task