Reworked script