Adding functions that do compoents of scrath file procedures. Added "getBEACON" function