Moved private method. Removed positions module as I only work with tuples now.