Added position calculations and parent position check
New demo