process_synchronously and process_asynchronously methods are added.

I needed these two methods so I added inorder to enable the behaviour more dynamic.