Wrote the public size function.