Use functions h J instead of inline code