Added the bounds to keep track of doamins.