Simple, robust and portable solution.