Working and tested script for Bare Necessities (version 1.0.3)