Add the draft for calculating likelihood and time prior. (Need to be modified)