Adding wavefunctions