Fixed unused functions.