Remove unneccessary function