Crappy code for m4