Made all variables public and some methods global.