Ported Functionality of Prototype into Gem