Improved backend controller