Replace calls to deprecated hash:md5
Replace use of deprecated terms
Fix compilation warning