Moved build_access_token to protected area. Added a condition to avoid building access token twice.