Precalculating alpha values now. Added a comment.