Removed unneccessary code; s/select/check/.