Finished code reduction