Added ability to check the size of a reference map