Added bounds flexibility.