Added entity functions.