Started work on logging