Changed to match erl_db