Added advanced position handling

Probably gonna keep tweaking this for a bit.