Removed no longer used function