Remove copy pasted function