Minor refactoring to allow for using different backends

This is actually a really minor change, but finally allows for people to use different backends very easily.