Added some basic functionality related to metric