Faster beforescript