Implements first get function