Properly set up constructor