Implemented main module