Made take() a non-blocking operation