Resolved annoying runtime warnings