Properly rendering a function