Corrected inlining error, added function determination call