 
 			parse.duration req, ->
 
-				if process.env.npm_package_config_anonymize is 'true'
-
-					# Do not save ip
-					req.ip = '-'
+				ip = '-'
+
+				# Save IP
+				ip = req.ip if process.env.npm_package_config_anonymize isnt 'true'
 
 				timezoneOffset	= (+new Date().getTimezoneOffset()) * 60
 				currentTime		= Math.round(+new Date()/1000) - timezoneOffset


			parse.visits req, ->

				if process.env.npm_package_config_anonymize is 'true'

					# Do not save ip
					req.ip = '-'

				timezoneOffset	= (+new Date().getTimezoneOffset()) * 60
				currentTime		= Math.round(+new Date()/1000) - timezoneOffset


					$duration: currentTime
					$id: req.query.id
					$ip: ip

				, (error) ->

