Move module definition to the top