Added check of parent energy.