Re-wrote the skroll code in a more standard way