Odd things are happening with apply. Debugging.