Added backwards compatibility using rb3compat module. Should work on RB2.96+ now.