Added probabilityLog function