Minor code cleanup in backend file