Creting shellObject to outsource methods.
Fixed history tracking bug.