Making it compilable and connected with the UI