Consolidate Code