Improved InRange and OutOfRange object writing & removed some unused methods.