Mainly my algorithms