Add shiva's code for generating permalink...