Improve the function 'from_elem(..)'.