Finalizing output script