Completely and absolutely failed at making sed work, fixed now