Adjusted file to take into account static input ports and made syntax fixes