Change strpos lookup, move header creation.