Temporary resource hacks, until I add proper resource handling.