Reworking and extending fplog API.