Added logging ability