Added sync option
Fixed #1. Do not expose the password.