Added old function for backwards compatibility