Changes to simplify use: removed need to extend a class other than MonoBehaviour.