Trying to optimize parsing