Edits. Added def for pwr