Added base for callbacks to write