Fixed build warnings. Added writers.