Added some logic to all method to make templating with object returned by all a bit easier.