Added constructor for setting slug,etc.