Added some doc strings and return for decorated function.