WP initial setup function added