FAST-ER and FAST learning code.