More debugging. Now going to fix "Buffer is empty" error.