Implemented the outputOccs

Still need to test it