Replaced deprecated sq_createslot() with sq_newslot()