Added ghost shape functionality