Updated to use [].indexOf
Updated log file location