Modified to make pry integration easier, using static methos instead of
member methods.