Added missing period unit to visits call, renamed period to periodUnit