Nit:  Remove this blank line at the end of the function.  This is easier to see if you append "?w=1" to the github URL to ignore whitespace changes.