Added logging to the init methods