BitPocket-based script