Accidentally used deprecated function