Fix local discs and disc writes. Fixes #37