Fixed preexisting errors to do initial run of application