Made plotting non-blocking