Added utilities to save player status and restore it when leaving fmtl.