Profile - finish first draft.
Note that the code is a bit hackish. The code will need to be improved! (couple of things are hard-coded)