Add detached header support (Closes #2)