Converted for using bonescript.