Placing inside self invoking func