Added maphashing functions for testing mostly.