Replacing onBuildWrite with onBuildRead