Setup and logging working