Functioning with main package