Added likelihood function and TODOs.