Added top level statements and fixed include