Removed scroll checking code