Added bounds checking to World methods.