Fixed references to old class
Added a lua script for popping an element from a set by it's score