Added an expire parameter to metrics; Close #12