Use 1 or 0 for same condition
Adding swig interface