Removed unused toMap function even though it will probably come back at some point.