Added CreateElement method