Replaced long with var, replaced tabs with spaces