Incorporating memory effects in phase separation processes