Working and tested script for Crate&Barrel (version 1.0.3)