refs #2 - Fixed the use of within() to help reduce the memory footprint