Updated version of inline-critical to address #14