A nontrivial public function such as this should most certainly NOT be inline.
Attach a file by drag & drop or click to upload