Use take().unwrap() instead of deprecated take_unwrap()