Working on occupation function