Adding pixi library; refactoring;