Updated cap scripts so they work with pawpaw, mallorn and lancelot