Re-ordered args as discussed

I have re-ordered the function arguments so that the headers argument is last and can therefore be safely ignored by the other platforms as discussed with @agrieve