Reworked argument control.
Added inheritance function.