Changed function order
Fixed project settings