Declare conditional sampling functions - I've been making this harder than it needs to be.