Added and tested special functions