Necessary functions for writing a bit should be done.