Removed additional variables that were no longer needed and moved updating panes to _write calls