Adding module interface and API logic.