All well function. TODO: modals and minor interface issues