rearranged some function arguments and new sleep time

Signed-off-by: Alexander Skjolden <alex@plastboks.net>
removed mhash

Signed-off-by: Alexander Skjolden <alex@plastboks.net>