Refactor writes through dispatch function for now