Implemented metrics get & save function