Refactored package into ecos bb