Added code

Added ready functions