Implemeted flag parsing and storage of potentials