Combined final code