Added error throwing for the jex.