Use typeof so that new-able objects still work