First fully working version of top