Added clear implementation