Moved command check.