Changed a minor thing (calling a function rather than using public members)