Cleaned up code in PE11.rb