Redesigned function to cancel native code and place custom chest.