Added packages and fit support. With tests.