Fixed a few code notices for variables not defined - still not working, though...