Code compatible with Debian 6 and Debian 7