Used basic prob function