Added requireStateParam() method. Fixes #9