Making user specify keyname
Making sync time configurable
Fix code style.