Updated
Added superposition performing function