Initial version of bud script

WARNING: Untested!