Added mistakenly removed function.