Added planes count for the code to work