Fixed multiple definition error and fixed LM for lazy developers like me.