Nit: Current coding convention says } else { instead of the else in a different line.