Adding missing functions