Door opening works but should be rewritten.