Make the scroller code smaller. Imported from CATSFC.