Animate scroll and code cleanup.