Corrected the csex and cseo functions