Tidying up - introduced a LogLik type