Implemented toggle conversion by q