When Apophis was discovered in 2004, initial calculations indicated that it could approach Earth with a risk of collision.