Added function to get namespace