 				# Required data available
 				db.source.run 'INSERT INTO stats VALUES (NULL, $ip, $referrer, $site, $site_title, $time, $duration, $language, $browser, $browser_version, $browser_width, $browser_height, $platform, $screen_width, $screen_height)',
 
-					$ip: req.ip
+					$ip: ip
 					$referrer: req.query.referrer
 					$site: req.query.site
 					$site_title: req.query.site_title


			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


			parse.duration req, ->

				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
