Added a calculation of alpha, but it doesn't work normally.