Remove repeated function