Choose angle function is fixed from bugs, can be made neater perhaps