Replaced buffer status commands with version info commands. Cleaned up code too.