Munge types a bit to return result
Gotta fix this awful API soon