Better function documentation