Improved position info, added main