Added function for abstracting data