-Added before script actions