Fixed code to simulate from DLM