Fixed the user friendly function LWP()