Allow conditions to be passed in