Improved framrate and added so additional code