Implemented processing timer in functions for elasticsearch. This change helps to close #6.