Refactored md5 command