Choose target features

Fix #1879.