Tried making wavefunctions work. Not quite there.