Fixed communication protocol

Added lock screen