Modified boundary.rb to fit the new API