Renamed a terribly named method and added javadocs to it.