Added edit command, remove debug code