Of course this woul be possible as well. But in both cases it will be required that you start to look at the source code yourself ...