Added working wx code