Resolves bbangert/beaker#64
Use of @wraps decorator to not override function docstring and name