Updated version of Igor Tandetnik's PassthroughAPP