Refactored redshank's initialization code