Implemented much simpler iterative version of realizations method.