Finally got the whole auto-fill nonsense to compute. Had to define my own functions and everything.