Added optional logger
0.0.7