Add size function.