Made several variables final.