Turned this into a static method, doesn't use class attributes.