More checks on the inputs