Changed module design to work completely synchronized.