Why is this in a static block? Makes testing difficult.