Clean back-end code