Changed path from String to File