Removing extraneous code at the bottom