Removed double definition of two functions.