Fixed trap func, added skel copy debugging