Made tool independet from device coordinates