Amended for compatibility with 3.8.x+ kernels