Add support for self parameters, this might be a bit messy because they have to be handled separately from the other parameters list.