Introduced a function to simplify notation of pos.