Added base code for hack base.