Isolating Scollmanipulation code to make it portable