Added check if input is set