Added state and input - it checks against sympar as well so that
defined variables may be used here.