Added an option to handle packets synchronously instead of asynchronously. This gives to user the option to handle packets in a thread where thread safety is not an issue.