Function to check if number of repeats is implemented but not perfect. 

Need to implement this with the android file as well as change how the
new functions work with the constructor.