Try to re-implement clearner in cpu/mayah