Added first sketch of overlay function