Implemented entity behaviour.