Added base script for compacted