Now the whole picture is relatively complete... few additional function variables need to be written.