Making this production script actually work