Remove dirty functions