Changed ->new() calls from hash to hashref syntax