Replaced the pagination function call with an action hook, refactored the function itself, and did a partial rewrite of the ColorScheme implementation for better support of future enhancements.