Parsing header and profile data