Some cleanup and md5 stuff