Cleaned up backend loading code