Fixed small bug with Crate packets and slightly improved the performance
of crates.