Revert "Added logic to the Writer"

This reverts commit d6d7af143977fa0b4ed9a7ce33a48df8da85dd47.