Rewrote function to work with object and be more context friendly.
Default Package no longer used, replaced by cogito.main