Prevent errors due to multiple inputs