Adding small changes to use jruby