Added -O3 optimisation flag
Added support for asynchronous decoding.