Edited build functions to obtain MLEs of DLMs