Finished a draft of the potential controller