Running and checking input.