Update Titania.rb

Optimized