Added logging for backend selection