Working and tested script for Puma