Getting rid of somewhat redundant `LookupApp` func