Adapted the FR code to have FA attraction