Tidied up utility scripts
Reset offset when changinf pages