Replace function and constants into the mudule
Add check function to module