Implemented Q::take and used it in Q/inplace