Removed duplicate function.