Changed alpha beta filter to make more readable