Alternate script that uses functions