Included debugging flag to enable logging