Functions assignment initial setup (and cleanup)