BMW is coming after Tesla by doubling down on its efforts to release electric cars boasting longer ranges, and a fully autonomous car.

The automaker is working on a project dubbed Project i20 that is committed to releasing an all-electric car with the autonomous capabilities in late 2021, Automobile Mag first reported. By 2025, the Project i20 car will be fully autonomous.

BMW is also planning to release an updated version of its luxury, all-electric i3 in 2022, and its electric i8 sports car in either 2022 or 2023. BMW will aim to extend the i8's range to 300 miles for its new release, according to Automobile Mag's report.

BMW's timeline for releasing a fully autonomous car is behind some of its competitors. Tesla is planning to have its driverless technology ready by 2018, and Google is working on completing its driverless car by 2020.