Removed duplicate funciton.