Added various data processing functionality