Added clear and size function.