Removed completely unused functions.