Removed debug statements and added auto scrolling