Consolidated code