Removed all dead_code warnings