Removed unnecessary funtion.