File logging added