Added before script hook